Add New Service Config
PATCH /api/v1/services/:serviceId/configs
Description
Add a new service configuration for a specific service.
URL:
- Raw URL:
/api/v1/services/:serviceId/configs - Host:
- Path:
/api/v1/services/:serviceId/configs - Variables:
- serviceId: (Required)
Request:
-
Headers:
- Content-Type: application/json
Response:
- Status: OK (200)
/api/v1/services/:serviceId/configs
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Body (raw)
{
"serviceId": "<string>",
"config": [
{
"label": "<string>",
"key": "<string>",
"value": "<string>",
"required": "<boolean>",
"valueType": "array-email",
"formType": "multi-select",
"formOptions": [
{
"label": "<string>",
"value": "<string>",
"key": "<string>"
},
{
"label": "<string>",
"value": "<string>",
"key": "<string>"
}
]
},
{
"label": "<string>",
"key": "<string>",
"value": "<string>",
"required": "<boolean>",
"valueType": "string",
"formType": "multi-select",
"formOptions": [
{
"label": "<string>",
"value": "<string>",
"key": "<string>"
},
{
"label": "<string>",
"value": "<string>",
"key": "<string>"
}
]
}
]
}
Response: 200
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/services/:serviceId/configs \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!